import Layout from "@/layout";

const schoolRouter = {
  path: "/school/list",
  component: Layout,
  redirect: "noRedirect",
  name: "School",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "学校管理",
    abbre: "学校",
    icon: "left_menu_commodity",
    navigation: "/school/list",
    id: "161"
  },
  children: [
    {
      path: "/school/index",
      component: () => import("@/views/school/index"),
      name: "school_index",
      hidden: false,
      meta: {
        title: "学校列表",
        noCache: false,
        navigation: "/school/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/school/menu",
      component: () => import("@/views/school/menuConfig"),
      name: "school_menu_config",
      hidden: false,
      meta: {
        title: "菜单管理",
        noCache: true,
        navigation: "/school/menu",
        icon: "menu_big_data"
      }
    },
    {
      path: "/school/menuconfigdetail",
      component: () => import("@/views/school/menuConfigDetail"),
      name: "school_menu_detail",
      hidden: true,
      meta: {
        title: "菜单设置",
        bread: "菜单管理,菜单设置",
        noCache: true,
        navigation: "/school/menu",
        icon: "menu_big_data"
      }
    },
  ]
};
export default schoolRouter;
